package com.wash.shoes.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 工单
 * CREATE TABLE `os_work_order` (
 * `id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
 * `order_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '订单id',
 * `order_no` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '订单id',
 * `wash_factory` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '清洗的工厂',
 * `wash_shop` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '清洗的店铺',
 * `custom_phone` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '客户的电话',
 * `come_from` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '1' COMMENT '订单来源 1pc  2美团  3抖音 4小程序',
 * `mt_begin_time` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '预约日期',
 * `total_price` double NOT NULL DEFAULT '1' COMMENT '总价 = 订单金额 - 优惠价格',
 * `status` varchar(50) NOT NULL DEFAULT '0' COMMENT '工单状态 0 1已完结',
 * `goods_name` varchar(50) NOT NULL DEFAULT '0' COMMENT '商品名字',
 * `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
 * `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
 * `create_time` datetime DEFAULT NULL COMMENT '创建时间',
 * `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
 * `update_time` datetime DEFAULT NULL COMMENT '更新时间',
 * PRIMARY KEY (`id`) USING BTREE,
 * KEY `idx_order_id` (`order_id`) USING BTREE
 * ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC COMMENT='工单表';
 */
@TableName("os_work_order")
@Data
public class WorkOrderPo extends BasePersist {
    @ApiModelProperty(value = "工单id")
    @TableId
    private String id;
    /**
     * 订单id
     */
    @ApiModelProperty(value = "订单id")
    @TableField("order_id")
    private String orderId;
    /**
     * 订单号
     */
    @ApiModelProperty(value = "订单号")
    @TableField("order_no")
    private String orderNo;
    /**
     * 清洗的工厂
     */
    @ApiModelProperty(value = "清洗的工厂")
    @TableField("wash_factory")
    private String washFactory;
    /**
     * 清洗的店铺
     */
    @ApiModelProperty(value = "清洗的店铺")
    @TableField("wash_shop")
    private String washShop;
    /**
     * 客户的电话
     */
    @ApiModelProperty(value = "客户的电话")
    @TableField("custom_phone")
    private String customPhone;
    /**
     * 订单来源 1pc  2美团  3抖音 4小程序
     */
    @TableField("come_from")
    @ApiModelProperty(value = "订单来源 1pc  2美团  3抖音 4小程序")
    private String comeFrom;
    /**
     * 预约日期
     */
    @ApiModelProperty(value = "预约日期")
    @TableField("mt_begin_time")
    private String mtBeginTime;
    /**
     * 总价 = 订单金额 - 优惠价格
     */
    @ApiModelProperty(value = "总价 = 订单金额 - 优惠价格")
    @TableField("total_price")
    private Double totalPrice;
    /**
     * 工单状态 0创建 1已完结
     */
    @ApiModelProperty(value = "工单状态 0创建 1已完结")
    private String status;
    /**
     * 商品名字
     */
    @TableField("goods_name")
    @ApiModelProperty(value = "商品名字")
    private String goodsName;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;
    /**
     * 工厂的id
     */
    @TableField(value = "wash_factory_id")
    @ApiModelProperty(value = "工厂的id")
    private String factoryId;
    @ApiModelProperty(value = "店铺的id")
    @TableField("shop_id")
    private String shopId;
}